package com.winit.core.server.base;

/**
 * Created by keel2008 on 16/9/12.
 */
public class ExecResultHandler extends CmdOutputHandler {

    private String message;

    private Boolean status = true;

    public String getMessage() {
        return message;
    }

    public Boolean isSuccess() {
        return status;
    }

    @Override
    public void onMessage(String cmd, int index, String message, Boolean isErrorMessage) {

        this.status = !isErrorMessage;

        this.message = message;
    }
}
